<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<link rel="stylesheet" href="styles/form-input.css" type="text/css" media="all" />
<link type="text/css" rel="stylesheet" href="js/jquery/css/ui-lightness/jquery-ui-1.8.16.custom.css"/>
<script type="text/javascript" src="js/jquery/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="js/jquery/jquery-ui-1.8.16.custom.min.js"></script>
<script type="text/javascript">
	$(function() {
		var dates = $( "#fromDate, #toDate" ).datepicker({
			dateFormat: 'd MM, yy',
			showAnim: 'fold', 
			changeMonth: true,
			changeYear: true,
			numberOfMonths: 1,
			yearRange: '1958:2020',
			onSelect: function( selectedDate ) {
				var option = this.id == "fromDate" ? "minDate" : "maxDate",
					instance = $( this ).data( "datepicker" ),
						date = $.datepicker.parseDate( instance.settings.dateFormat || $.datepicker._defaults.dateFormat,
							selectedDate, instance.settings );
				dates.not( this ).datepicker( "option", option, date );
			}
		});
	});
	$(document).ready(function() {
   		$("button").button();
 		});
</script>

	<div class="error-text"><s:actionerror /></div>
	<div class="error-text"><s:fielderror /></div>
	<div class="message-text"><s:actionmessage /></div>
	
	<div align="center">
		<s:form theme="simple" method="POST" action="report04">
			<fieldset style="width:470px;">
				<legend><h3>Close Account Report</h3></legend>
				<br>
				<div align="left">
					Account Close Date
					<table cellpadding="7">
						<tr/>
						<tr/>
						<tr/>
						<tr><td>From</td><td><s:textfield name="fromDate" id="fromDate" readonly="true"/>*</td><td>to</td><td><s:textfield name="toDate" id="toDate" readonly="true"/></td></tr>
						<tr><td>Branch</td><td><s:select name="branchId" list="branchs" headerKey="-2" headerValue="all branch in area" listKey="id" listValue="name"/></td></tr></tr>
					</table>
				</div>
				<br>
				<div align="center">
					<s:submit type="button">GENERATE</s:submit>
				</div>
				<br>		
			</fieldset>			
		</s:form>
	</div>
